package com.sunshineedu.sunshineeducationspring.dao;

import com.sunshineedu.sunshineeducationspring.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.lang.NonNullApi;

public interface UserDao extends JpaRepository<User, Long> {
    User findAllById(Integer id);

    User findAllByUsername(String username);

    User findAllByWxId(String wxId);

    User save(User user);
}
